package net.dgg.zz.credential.certificateType.dao;

import net.dgg.zz.credential.certificateType.entity.CertificateType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface CertificateTypeDao {
    int deleteByPrimaryKey(Long id);

    int insert(CertificateType record);

    int insertSelective(CertificateType record);

    CertificateType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CertificateType record);

    int updateByPrimaryKey(CertificateType record);

    /**
     * 根据条件查询证书（资质）类型等信息
     * @param params
     * @return
     */
    List<Map> getCertificateType(Map params);

    String getCerificateTypeName(Map<String,Object> param);

    /**
     * 查询证书类型
     * @param id
     * @return
     */
    String getCerificateTypeName1(int id);

    /**
     * 证书专业
     * @param parseInt
     * @param parseInt1
     * @return
     */
    String getCerificateTypeName2(@Param("pid") int parseInt,@Param("id") int parseInt1);
}